<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
<h:head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>mymsgro</title>
	<link rel="stylesheet" type="text/css" href="css/main.css" />
	<link rel="stylesheet" type="text/css" href="css/meniu.css" />
	<link rel="stylesheet" type="text/css" href="css/style.css" />

</h:head>
<h:body>

	<ui:include src="header.xhtml" />

	<h:panelGroup layout="block" id="content">

		<ui:include src="leftMenu.xhtml" />

		<h:panelGroup layout="block" id="contenRight">

			<h:panelGroup layout="block" id="header" style="margin-top: 20px;">
				<ul>
					<li id="selected"><a>Search</a></li>
				</ul>
			</h:panelGroup>

			<h:panelGroup layout="block" id="contentTab">
				<h:form id="searchUserForm">

					<h:panelGrid columns="2">
						<h:outputText value="Name " style="float:right" />
						<h:inputText value="#{searchUserBean.name}" />

						<h:outputText value="DType " style="float:right" />
						<h:selectOneMenu id="inputEmployeeType"
							value="#{searchUserBean.userType}">
							<f:selectItem itemValue="" itemLabel="Any" />
							<f:selectItem itemValue="ConfidentialEmployee"
								itemLabel="Employee" />
							<f:selectItem itemValue="Trainee" itemLabel="Trainee" />
						</h:selectOneMenu>

						<h:outputText value=" "></h:outputText>
						<h:outputText value=" "></h:outputText>



						<h:outputText value=" "
							rendered="#{controllerBean.hasAdvancedFilterRights()}"></h:outputText>
						<h:outputText value="Medical Checkup Date "
							rendered="#{controllerBean.hasAdvancedFilterRights()}"
							style="font-weight: bold" />


						<h:outputText value="Start " style="float:right"
							rendered="#{controllerBean.hasAdvancedFilterRights()}" />
						<h:inputText value="#{searchUserBean.startLastMedCheckDate}"
							rendered="#{controllerBean.hasAdvancedFilterRights()}">
							<f:convertDateTime pattern="yyyy-MM-dd" />
						</h:inputText>


						<h:outputText value="End " style="float:right"
							rendered="#{controllerBean.hasAdvancedFilterRights()}" />
						<h:inputText value="#{searchUserBean.endLastMedCheckDate}"
							rendered="#{controllerBean.hasAdvancedFilterRights()}">
							<f:convertDateTime pattern="yyyy-MM-dd" />
						</h:inputText>


						<h:outputText value=" "></h:outputText>
						<h:outputText value=" "></h:outputText>



						<h:outputText value=" "
							rendered="#{controllerBean.hasAdvancedFilterRights()}"></h:outputText>
						<h:outputText value="Salary" style="font-weight: bold"
							rendered="#{controllerBean.hasAdvancedFilterRights()}" />


						<h:outputText value="Between " style="float:right"
							rendered="#{controllerBean.hasAdvancedFilterRights()}" />
						<h:inputText value="#{searchUserBean.startSalary}"
							rendered="#{controllerBean.hasAdvancedFilterRights()}" />

						<h:outputText value="and " style="float:right"
							rendered="#{controllerBean.hasAdvancedFilterRights()}" />
						<h:inputText value="#{searchUserBean.endSalary}"
							rendered="#{controllerBean.hasAdvancedFilterRights()}" />



						<h:outputText value="Enabled Account " style="float:right"
							rendered="#{controllerBean.hasAdvancedFilterRights()}" />
						<h:selectBooleanCheckbox id="enabledAccount"
							rendered="#{controllerBean.hasAdvancedFilterRights()}"
							value="#{searchUserBean.enabledAccount}" />

						<h:outputText value="Show Photo " style="float:right" />
						<h:selectBooleanCheckbox id="showPhoto"
							value="#{searchUserBean.showPhoto}" />



						<h:outputText value="Position " style="float:right" />
						<h:inputText value="#{searchUserBean.position}" />

						<h:outputText value=" "></h:outputText>
						<h:outputText value=" "></h:outputText>

						<h:outputText value=" "></h:outputText>
						<h:outputText value="Employment Date " style="font-weight:bold" />


						<h:outputText value="Between " style="float:right" />
						<h:inputText value="#{searchUserBean.startEmploymentDate}">
							<f:convertDateTime pattern="yyyy-MM-dd" />
						</h:inputText>

						<h:outputText value="and" style="float:right" />
						<h:inputText value="#{searchUserBean.endEmploymentDate}">
							<f:convertDateTime pattern="yyyy-MM-dd" />
						</h:inputText>



						<h:outputText value="Employment Type(cm/pfa)" style="float:right"
							rendered="#{controllerBean.hasAdvancedFilterRights()}" />
						<h:selectOneMenu id="inputEmploymentType"
							rendered="#{controllerBean.hasAdvancedFilterRights()}"
							value="#{searchUserBean.employmentType}">
							<f:selectItem itemValue="#{null}" itemLabel="-- select one --" />
							<f:selectItem itemValue="CM" itemLabel="CM" />
							<f:selectItem itemValue="PFA" itemLabel="PFA" />
						</h:selectOneMenu>



						<h:outputText value="Department " style="float:right" />
						<h:selectOneMenu id="inputComboDepartment"
							value="#{searchUserBean.selectedDepartmentId}">
							<f:selectItem itemValue="#{null}" itemLabel="-- select one --" />
							<f:selectItems value="#{searchUserBean.departmentList}"
								var="name" itemLabel="#{name.name}" itemValue="#{name.id}" />
						</h:selectOneMenu>

						<h:outputText value="Career Level " style="float:right"
							rendered="#{controllerBean.hasAdvancedFilterRights()}" />
						<h:inputText value="#{searchUserBean.careerLevel}"
							rendered="#{controllerBean.hasAdvancedFilterRights()}" />



						<h:outputText value="German Contact Person " style="float:right" />
						<h:inputText value="#{searchUserBean.germanContactPers}" />



						<h:outputText value=" "></h:outputText>
						<h:commandButton value="Search" id="searchBtn"
							action="#{searchUserBean.findByCriteria}"
							styleClass="butoaneDomain2" />
					</h:panelGrid>
				</h:form>
			</h:panelGroup>
		</h:panelGroup>
	</h:panelGroup>
</h:body>

</html>